<?php
	$db = mysql_connect('localhost','root');
	mysql_select_db('answer_sheet',$db);
	$ans = mysql_query('select isAnswered from answer_table');
	$base = 10;
	$score = 0;
	while ($row = mysql_fetch_array($ans)) {
		$score += $row['isAnswered'] * $base;
	}
	echo $score;
	mysql_close($db);
?>